<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=<device-width>, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <input type="radio" value="qq" v-model="loginType">QQ登录
        <input type="radio" value="phone" v-model="loginType">手机登录
        <input type="radio" value="email" v-model="loginType">邮箱登录
        <div v-if="loginType=='qq'">
            <h3>QQ登录</h3>
            <p>qq账号:<input type="text"/></p>
            <p>密码：<input type="password"/></p>
            <p><button>登录</button></p>
        </div>
        <div v-else-if="loginType=='phone'">
            <h3>手机登录</h3>
            <p>手机号:<input type="text"/></p>
            <p>验证码:<input type="text"/></p>
            <p><button>登录</button></p>
        </div>
        <div v-else>
            <h3>邮箱登录</h3>
            <p>邮箱:<input type="text"/></p>
            <p>密码:<input type="password"/></p>
            <p><button>登录</button></p>
        </div>
    </div>
    <script>
        constcomApp = Vue.createAPP({
            data(){
                return{
                    loginType:"qq"
                }
            },
        }).mount("#app");
    </script>
</body>
</html>